<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>海报二维码</title>
</head>
<body>

</body>
<script type="text/javascript">
	//js 获取url指定参数
	function getQueryString(name) {
		var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
		var r = window.location.search.substr(1).match(reg);
		if (r != null) return unescape(r[2]); return null;
	}
	console.log(getQueryString('roleType'));
</script>
</html>
